
Page({
  data: {
    top: null,
  },
  onLoad() {
    const menu = wx.getMenuButtonBoundingClientRect();
    let system;
   wx.getSystemInfo({
       success(res){
        system=res
       }
   });
    const top = system.statusBarHeight + menu.height + (menu.top - system.statusBarHeight) * 2;
    // console.log(top)
    this.setData({
        top:top
    })
    
  }
})
